<dt id="leftPageHeaderPanel" class="<%= local_assigns[:active] ? "active" : "" %>">
  <span class="content">
    <% if @article.andand.kind_of?(Skyline::Page) && current_user.allow?(:page_create) %>
      <%= menu_button t(:add_page, :scope => [:article, :edit]), :id => "add_page_button" do %>
        <ul>
          <% possible_positions = @article.root? ? %w{in} : %w{in below} %>
          <% possible_positions.each do |pos| %>
            <li><%= 
              link_to(
                t("add_page_#{pos}", :scope => [@article.class, :edit]), 
                skyline_articles_path(:article_id => @article, :type => "skyline/page", :position => pos), 
                :method => :post, 
                :remote => true) 
              %></li>
          <% end %>
        </ul>
      <% end %>
    <% end %>
    <%= Skyline::Page.model_name.human(:count => 2) %>
  </span>
</dt>
<% if current_user.allow?(:page_index) %>
  <dd  id="leftPageContentPanel">
    <div class="content scrollable">
      <div id="pagetree" class="pages tree">
        <% nodes = Skyline::Page.group_by_parent_id %>
        <%= page_tree(nodes, nodes[nil], :selected => @article) %>
        <% if @article.andand.kind_of?(Skyline::Page) %>
          <script type="text/javascript" charset="utf-8">
            window.addEvent("domready",function(){
              var myFx = new Fx.Scroll("leftPageContentPanel",{duration: 0}).toElement('article_<%= @article.id %>');
            });
          </script>
        <% end %>
      </div>
    </div>
  </dd>
<% end %>